import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'

export default defineUniPages({
  pages: [],
  easycom: {
    autoscan: true,
    custom: {
      '^uv-(.*)': '@climblee/uv-ui/components/uv-$1/uv-$1.vue',
      '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)': 'z-paging/components/z-paging$1/z-paging$1.vue',
    },
  },
  globalStyle: {
    backgroundColor: '#ffffff',
    navigationBarBackgroundColor: '#FFFFFF',
    navigationBarTextStyle: '@navTxtStyle',
  },
  tabBar: {
    backgroundColor: '@tabBgColor',
    borderStyle: '@tabBorderStyle',
    color: '@tabFontColor',
    selectedColor: '@tabSelectedColor',
    list: [
      {
        pagePath: 'pages/home',
        iconPath: 'static/images/tabBar/home_0.png',
        selectedIconPath: 'static/images/tabBar/home_1.png',
        text: '首页',
      },
      {
        pagePath: 'pages/profile',
        iconPath: 'static/images/tabBar/profile_0.png',
        selectedIconPath: 'static/images/tabBar/profile_1.png',
        text: '个人中心',
      },
    ],
  },
})
